package com.hx.bean;
import lombok.Data;
import java.io.Serializable;
@Data
public class User implements Serializable {
    private static final long serialVersionUID = -109418758839631281L;
    private Integer id;
    private String username;
    private String password;
    private String name;
    private Integer age;
    public  static  String getKeyName(){
        return  "user:";
    }
    public  static  String getName(){
        return  "user";
    }
    public  static  String getLoginTimeLockKet(String uname){
        return  "user:loginTime:lock:" + uname;
    }

    public static String  getLoginCountFailKey(String uname){
        return  "user:loginCount:fail:" + uname;
    }

}
